﻿@model Classified.Domain.Entities.Location
<fieldset>
    @Html.HiddenFor(m=>m.Id)
    @Html.HiddenFor(x=>x.CountryId)
    <div class="clearfix">
        @Html.LabelFor(model => model.Name)
       
        <div class="input">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>
    <div class="clearfix">
        @Html.LabelFor(model => model.ParentId)
       
        <div class="input">
            @Html.DropDownList("ParentId")
            @Html.ValidationMessageFor(model => model.ParentId)
        </div>
    </div>
   <div class="clearfix">
        @Html.LabelFor(model => model.DisplayName)
       
        <div class="input">
            @Html.EditorFor(model => model.DisplayName)
            @Html.ValidationMessageFor(model => model.DisplayName)
        </div>
    </div>
    <div class="clearfix">
        &nbsp;
       
        <div class="input">
            @Html.EditorFor(model => model.IsActive) Is Active
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>
    </div>

    <div class="clearfix">
        &nbsp;
       
        <div class="input">
            @Html.EditorFor(model => model.IsDefault) Is Default
            @Html.ValidationMessageFor(model => model.IsDefault)
        </div>
    </div>

    <div class="actions">
        <input type="submit" class="btn" value="Save" />
        <input type="button" class="btn closeModal" value="Close window" /> 
    </div>
</fieldset>